<?php
namespace app\index\controller;
use think\Controller;
use think\Request;
use app\index\common\Base as commonController;
use think\Db;
use think\Session;
class Index extends commonController
{
	// 初始化方法，赋值高亮导航
	public function _initialize()
	{
		
	}
	// 首页渲染模板
    public function index()
    {
		return $this -> view -> fetch('index');
    }
    //举报
	public function complaint() {
		
		return $this->fetch('complaint/complaint');
	}
	public function view () {
		$id = input('param.id');// 活动的ID
		$data = Db::table('activity')->where('id',$id)->find();
		$this->assign('data',$data);
		return $this->fetch('template/template'.$id);
	}
}
